package Chap04;

public class ZooApp {
    public static void main(String[] args) {
        Feeder feeder=new Feeder("张三");
        System.out.println("大家好，我是饲养员"+feeder.getName());
        feeder.feed(new Cat("猫咪花花"),new Food("小鱼干"));
        feeder.feed(new Dog("金毛大黄"),new Food("肉骨头"));
        feeder.feed(new Animal("大狮子") {
            @Override
            public void shout() {
                System.out.println("\t嗷嗷嗷~~~");
            }
        },new Food("五花肉"));
    }
}
